package demo.ioc.my.core.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.reflect.Method;

/**
 * Created by 张少昆 on 2018/3/18.
 */
public class RequestMappingInfo {
    private String url = "";
    private Class clzz;
    private Method method;
    private Object instance;
    private HttpServletRequest request;
    private HttpServletResponse response;

    public String getUrl(){
        return url;
    }

    public void setUrl(String url){
        this.url = url;
    }

    public Class getClzz(){
        return clzz;
    }

    public void setClzz(Class clzz){
        this.clzz = clzz;
    }

    public Method getMethod(){
        return method;
    }

    public void setMethod(Method method){
        this.method = method;
    }

    public Object getInstance(){
        return instance;
    }

    public void setInstance(Object instance){
        this.instance = instance;
    }

    public HttpServletRequest getRequest(){
        return request;
    }

    public void setRequest(HttpServletRequest request){
        this.request = request;
    }

    public HttpServletResponse getResponse(){
        return response;
    }

    public void setResponse(HttpServletResponse response){
        this.response = response;
    }

    @Override
    public String toString(){
        return "RequestMappingInfo{" +
                       "url='" + url + '\'' +
                       ", clzz=" + clzz +
                       ", method=" + method +
                       ", instance=" + instance +
                       ", request=" + request +
                       ", response=" + response +
                       '}';
    }
}
